
class GameScene extends Core.BaseScene {
    private _gameMap: GameMap
    constructor() {
        super()
    }

    public onEnter(): void {
        console.log("GameScene.onEnter")
        //LayerManager.Game_Main = new Core.BaseSpriteLayer()
        this.addLayer(LayerManager.getInstance().Game_Main)
        this.addLayer(LayerManager.getInstance().UI_Main)

        this._gameMap = new GameMap(LayerManager.getInstance().Game_Main)
        this._gameMap.initMap("map_x_2_png")
        //this._gameMap.lookAt(0, 0)

        LayerManager.getInstance().Game_Main.on(Laya.Event.MOUSE_DOWN, this, this.onStartDrag)
        LayerManager.getInstance().Game_Main.on(Laya.Event.MOUSE_UP, this, this.onStopDrag)

    }

    private onStartDrag(e: Event): void {
        this._gameMap.startDrag(null, false, 100, 100, null, true);
        console.log(e)
        console.log(this._gameMap)
    }
    private onStopDrag(e: Event): void {
        this._gameMap.stopDrag()
    }
}